#pragma once
#include "../common/Common.h"
#include "afxwin.h"
#include "afxcmn.h"

class CMulticastTestDlg : public CDialogEx
{
public:
	CMulticastTestDlg(CWnd* pParent = NULL);

#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_MULTICASTTEST_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);

protected:
	HICON m_hIcon;

	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

	SOCKET			_sockM;

	CStringA		_localIP;
	CEdit			_editSend;

	CEdit			_editMsg;
	CIPAddressCtrl _ipMulticast;
	CEdit _editPortMulticast;

public:
	afx_msg void OnBnClickedButton1();
	afx_msg void OnBnClickedButton2();
	afx_msg void OnBnClickedButton5();
	afx_msg void OnBnClickedButton6();

	void AppendMsg(const WCHAR* msg);
	LRESULT OnAppendMsg(WPARAM wParam, LPARAM lParam);
};
